<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>EVENT</title>
</head>
<body>
	<button type="button" id="testBtn">测试按钮</button>

	<form id='alipaysubmit' name='alipaysubmit' action='https://openapi.alipay.com/gateway.do?charset=UTF-8' method='POST'>
		<input type='hidden' name='biz_content' value='{"productCode":"QUICK_WAP_WAY","body":"qwerqwer","subject":"qwe","out_trade_no":"T20180607202643703","total_amount":"0.01","timeout_express":"1m"}'/><input type='hidden' name='app_id' value='2018042560057257'/>
		<input type='hidden' name='version' value='1.0'/>
		<input type='hidden' name='format' value='json'/>
		<input type='hidden' name='sign_type' value='RSA2'/>
		<input type='hidden' name='method' value='alipay.trade.wap.pay'/>
		<input type='hidden' name='timestamp' value='2018-06-07 20:26:50'/>
		<input type='hidden' name='alipay_sdk' value='alipay-sdk-php-20161101'/>
		<input type='hidden' name='notify_url' value='http://admin.cypto.cn/api/user/pay_return/asynNotify'/>
		<input type='hidden' name='return_url' value='http://fed.cypto.cn/pages/pay_result.html'/>
		<input type='hidden' name='charset' value='UTF-8'/>
		<input type='hidden' name='sign' value='BKFQtCzJbro+uT/WFIVQzNiowH68h62soaoY2KM3JRazHxwsy3qYPmOAgqsN2W4cotOUTENF89gHUJTnDPxmdJU5P9xLvUM+RSThJabcyZgtdbqc5mwc2FyLQXhhj+BoJTOgp0FvjMsfQlUOHiWR9DKP/wEo0oYy4paog6YETIrA56LnzIHjQI8BJfhdmkHpMXcQu/A8mj0cAoFY9de+S2HP9Eq0H12e2hMg510aTigICNxAkGrYeMc7xnZxtGH+78IFyq1d8Jf620S+uzkKDFuPogv0/CUgOLH5gaHK23KL/oO7DzPu9kVpHkfYk771hd+n5WgTMKEiVVqGu70DBg=='/>
		<input type='submit' value='ok' style='display:none;' />
	</form>
	<script>document.forms['alipaysubmit'].submit();</script>

</body>
<script src="https://unpkg.com/flyio/dist/fly.js"></script>
<script>
	var testBtnEle = document.getElementById('testBtn');
	testBtnEle.addEventListener('click', foo.bind(testBtnEle, 123));
	function foo1(test, as, e) {
		console.log('this-->>', this);
		console.log('e-->>', e);
		console.log('test-->>', test);
		console.log('as-->>', as);
	}

	function foo() {
		fly.post('http://www.daguanjia.com/api/user/public/login?XDEBUG_SESSION_START=11850', {
			username: '15321007216',
			password: '123123',
			device_type: 'android',
			login_type: 'pwd'
		})
		.then(function(res) {
			console.log(res);
		})
		.catch(function(err) {
			console.log(err);
		});
	}
</script>
</html>